package com.fyl.pattern.responsibility;

/**
 * 部门经理类 具体的处理者
 */
public class Manager extends Handler{
    public Manager() {
        super(0, Handler.NUM_THREE);
    }

    @Override
    protected void handleLeave(LeaveRequest leaveRequest) {
        System.out.println(leaveRequest.getName()+"请假"+leaveRequest.getNum()+"天，理由："+leaveRequest.getContent());
        System.out.println("部门经理审批：同意");
    }
}
